﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif 

// **********************************************************************
// Copyright (C) XM
// Author: 赵思佳
// Date: 2019-01-03
// Desc: 
// **********************************************************************
namespace SpaceDFramework
{
    public class TransformSimplifyEditor
    {
#if UNITY_EDITOR
        [MenuItem("SpaceD/Transform初始化  %q", false, 4)]
        static void CallMenu()
        {
            if (Selection.transforms.Length > 0)
                for(int i=0;i< Selection.transforms.Length;i++)
                {
                    TransformSimplify.Identity(Selection.transforms[i]);
                }
            else {
                CommonUtil.LogError("选中一个物体，令Transform初始化");
            }
        }
#endif
    }
}
